/// ChangePasswordDto
class ChangePasswordDto {
  /// 新密码
  final String? newPpassword;
  /// 当前密码
  final String? currentPpassword;
  /// 系统代码：1-客户端 2-平台端 3-核销代理端 4-财务代理端
  final int? systemCode;

  ChangePasswordDto({
    this.newPpassword,
    this.currentPpassword,
    this.systemCode,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (newPpassword != null) data['newPpassword'] = newPpassword;
    if (currentPpassword != null) data['currentPpassword'] = currentPpassword;
    if (systemCode != null) data['systemCode'] = systemCode;
    return data;
  }

  factory ChangePasswordDto.fromJson(Map<String, dynamic> json) {
    return ChangePasswordDto(
      newPpassword: json['newPpassword'],
      currentPpassword: json['currentPpassword'],
      systemCode: json['systemCode'],
    );
  }
}